package com.example.ws.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;


public class CtmConfigLoader {
    
    private String gconfigPath = "";

    // 控制台日志文件绝对路径
    public static String CONSOLE_LOG_PATH_ABS = "";

    public CtmConfigLoader() throws IOException {
        // 获得配置文件
        InputStream configStream = this.getClass().getResourceAsStream(gconfigPath);
        Properties cfg = new Properties();
        cfg.load(configStream);
        CONSOLE_LOG_PATH_ABS = cfg.getProperty("CONSOLE_LOG_PATH_ABS", "");
        System.out.println(CONSOLE_LOG_PATH_ABS);

    }

    public static void main(String[] args) throws IOException {
        new CtmConfigLoader();
    }

}
